using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using NHibernate.Data.Models;
using NHibernate.Data.Base;

namespace NHibernate.Data.Managers
{
    public partial interface IExpertManager : IManagerBase<Expert, long>
    {
		// Get Methods
		IList<Expert> GetByIntroduction(System.Int64 introduction);
    }

    partial class ExpertManager : ManagerBase<Expert, long>, IExpertManager
    {
		#region Constructors
		
		public ExpertManager() : base()
        {
        }
        public ExpertManager(INHibernateSession session) : base(session)
        {
        }
		
		#endregion
		
        #region Get Methods

		
		public IList<Expert> GetByIntroduction(System.Int64 introduction)
        {
            ICriteria criteria = Session.GetISession().CreateCriteria(typeof(Expert));
			
			criteria.Add(NHibernate.Criterion.Expression.Eq("Introduction", introduction));
			
			return criteria.List<Expert>();
        }
		
		#endregion
    }
}